[XEND] An empirical and more conservative memory-overhead estimate for PV and HVM...
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 19 May 2006 15:08:51 +0000 (16:08 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 19 May 2006 15:08:51 +0000 (16:08 +0100)
commit37d3005e6271fa2c613f466068d6c0f38943c754
treef3890f1c6a30e931a9fc050e12c80cff07728903
parent0a44ca5991690acb6c6d88f08dfbe2fa8144ac14
[XEND] An empirical and more conservative memory-overhead estimate for PV and HVM guests.

This patch calculates the overhead needed for HVM domains.  If HVM is
supported by the hardware, I add a little ballooning overhead to
paravirtualized VMs also, to avoid low-memory situations.  (There are
various unchecked alloc_domheap_pages calls in shadow*.c that I am
trying to avoid tripping over for now...)  The values in this patch work
fine on 32 bit; I may update them later based on feedback and/or testing
on 64 bit.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
tools/python/xen/xend/image.py